package lab02.test07;

public class Test07 {
    public static void main(String[] args) {

        //实例化父类
        Person person = new Person();
        person.age = 18;
        person.idNumber = "55497846134";
        person.name = "china";
        System.out.println(person.toString());

        //实例化子类
        //引用父类的属性。
        Student student = new Student();
        student.age = 18;
        student.idNumber = "55497846134";
        student.name = "china";
        student.school = "川旅";
        student.sNo = "1564344555";
        System.out.println(student.toString());
    }
}
